package com.ncd.work;

public class Manager extends Employee{
    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    private double bonus;

    public Manager() {
    }

    public Manager(String name, int age, double salary,double bonus) {
        super(name, age, salary);
        this.bonus = bonus;
    }

    /*super都可以不写
    * */
    @Override
    public void Work() {
//        this.bonus = 1200;
        System.out.println("姓名为"+ super.getName()+",年龄为"+super.getAge()+"工资为"+ super.getSalary()+"奖金为"+ bonus);

    }
}
